package com.example.teachingSystem.pojo.form.TS;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "新增学生")
public class AddStuForm {

    @Schema(description = "学生学号")
    @NotBlank(message = "学生学号不能为空")
    private Long studentId;

    @Schema(description = "学生姓名")
    @NotBlank(message = "学生姓名不能为空")
    private String name;

    @Schema(description = "学生性别(male/female)")
    @NotBlank(message = "学生性别不能为空")
    private String gender;

    @Schema(description = "学生生日")
    @NotBlank(message = "学生生日不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date birthday;

    @Schema(description = "学生学院")
    @NotBlank(message = "学生学院不能为空")
    private String department;

    @Schema(description = "学生专业")
    @NotBlank(message = "学生专业不能为空")
    private String major;

    @Schema(description = "学生班级")
    @NotBlank(message = "学生班级不能为空")
    private String sClass;

    @Schema(description = "学生注册时间")
    @NotBlank(message = "学生注册时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date enrollDate;

    @Schema(description = "学生电话号码")
    @NotBlank(message = "学生电话号码不能为空")
    private String phone;

    @Schema(description = "学生地址")
    @NotBlank(message = "学生地址不能为空")
    private String address;

    @Schema(description = "学生身份证号")
    @NotBlank(message = "学生身份证号不能为空")
    private String idCard;
}
